package com.jinzihan.www.entity;

/**
 * @author jin-zihan
 * @create 2021-11-26-15:45
 */
public class Commodity {
    public final int id;
    public String name;
    private int price;
    public String introduction;
    public String level;
    public Status status = Status.on_sale;
    public Commodity(int id, String name, int price, String introduction , String level) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.introduction = introduction;
        this.level = level;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public String toString(){
        return id + "\t\t\t" + status +"\t\t\t" + name +"\t\t\t" + price + "\t\t\t" + introduction + "\t\t\t" + level ;
    }

    public String getBagInfo(){
        return name +"\t\t\t" + price + "\t\t\t" + introduction + "\t\t\t" + level ;

    }

}
